﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="Overview.aspx.cs" Inherits="ControlExplorer.samples.VirtualScrollPaging.Overview" %>
<%@ Register Assembly="FarPoint.Web.Spread, Version=7.40.20132.1, Culture=neutral, PublicKeyToken=327c3516b1b18457"
    Namespace="FarPoint.Web.Spread" TagPrefix="FarPoint" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
    function scrollSpread() {
      var spread = document.getElementById("<%= FpSpread1.ClientID%>");
            if (spread && spread.getSpreadView) {
              spread.getSpreadView().GetSpreadContext().scrollView();
            }
          }
  </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <div style="margin-bottom: 4px;">
    <span>在当前页显示的前一页的行数：</span>&nbsp;
    <asp:DropDownList ID="PreviousRowsDropDownList" runat="server">
      <asp:ListItem Selected="True">0</asp:ListItem>
      <asp:ListItem>5</asp:ListItem>
      <asp:ListItem>10</asp:ListItem>
      <asp:ListItem>15</asp:ListItem>
    </asp:DropDownList>
  </div>
  <div style="margin-bottom: 4px;">
    <span>显示滚动条提示。</span>&nbsp;<asp:CheckBox ID="ShowTipCheckBox" runat="server" Checked="false" />&nbsp;&nbsp;&nbsp;&nbsp;
    <span>分页提示格式</span>&nbsp;
    <asp:DropDownList ID="PagingTipFormatDropDownList" runat="server">
      <asp:ListItem Selected="True">Default</asp:ListItem>
      <asp:ListItem>Page {page}</asp:ListItem>
      <asp:ListItem>Page {page}/{count}</asp:ListItem>
      <asp:ListItem Value="">None</asp:ListItem>
    </asp:DropDownList>
    <asp:Button ID="ApplyButton" Style="float: right;" runat="server" Text=" 提交 " OnClick="ApplyButton_Click" />
  </div>
  <div class="orderentry">
    <FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black" BorderStyle="Solid"
      BorderWidth="1px">
      <CommandBar BackColor="Control" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
        ButtonShadowColor="ControlDark">
      </CommandBar>
      <Sheets>
        <FarPoint:SheetView SheetName="Sheet1">
        </FarPoint:SheetView>
      </Sheets>
    </FarPoint:FpSpread>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Description" runat="server">
  <p>
    虚拟分页的另一个相关属性为 AllowVirtualScrollPaging，该属性可以替代 LoadOnDemand 属性。虚拟分页不可以和按需加载同时使用。开启虚拟分页技术需要设置 EnableClientScript 为 true，同时您可以设置 EnableAjaxCall 为 true 开启 Ajax 模式。
  </p>
</asp:Content>
